﻿using Medianamik.DummyWebSite.Container.Registries;
using Medianamik.UI.Web.Shop.Container.Registries;
using StructureMap;

namespace Medianamik.DummyWebSite.Container
{
    public static class ContainerBootstrapper
    {
         public static void BootstrapStructureMap()
        {
            ObjectFactory.Initialize(container =>
            {
                container.AddRegistry<RepositoriesRegistry>();
                container.AddRegistry<ServicesRegistry>();
                container.AddRegistry<PresentersRegistry>();
                container.AddRegistry<ViewsRegistry>();

                // Module Boutique
                container.AddRegistry(new DefaultShopRegistry());
            });
        }
    }
}
